﻿package mortal.game.view.copy.groupCopy.item
{
    import com.mui.controls.*;
    import com.mui.display.*;
    import extend.language.*;
    import mortal.common.global.*;
    import mortal.game.manager.*;
    import mortal.game.resource.*;
    import mortal.game.view.common.*;

    public class GroupCopyOnceAgainSp extends GSprite
    {
        public var enterBtn:GLoadingButton;
        protected var _txtBg:ScaleBitmap;
        protected var numTxt:GTextFiled;
        protected var yb:GBitmap;
        protected var _againTxt:GTextFiled;
        public static const NeedNum:int = 28;

        public function GroupCopyOnceAgainSp()
        {
            return;
        }// end function

        override protected function createDisposedChildrenImpl() : void
        {
            super.createDisposedChildrenImpl();
            this.enterBtn = UIFactory.gLoadingButton(ImagesConst.VipReCharge_upSkin, 0, 0, 100, 22, this);
            this.enterBtn.label = "";
            this._txtBg = UIFactory.bg(153, 18, 54, 22, this, ImagesConst.PanelBg);
            this.numTxt = UIFactory.gTextField("100", 157, 19, 30, 20, this, GlobalStyle.textFormatHuang2.center());
            this.yb = UIFactory.gBitmap(ImagesConst.Yuanbao, 185, 18, this);
            this._againTxt = UIFactory.gTextField("" + Language.getString(70883), 43, 4, 100, 25, this, GlobalStyle.textFormatAnjin.setSize(17));
            this.numTxt.text = "" + NeedNum;
            var _loc_1:Boolean = false;
            this._againTxt.mouseEnabled = false;
            this._againTxt.selectable = _loc_1;
            return;
        }// end function

        override protected function disposeImpl(param1:Boolean = true) : void
        {
            EffectManager.glowFilterUnReg(this.enterBtn);
            this.enterBtn = null;
            this._txtBg = null;
            this.numTxt = null;
            this.yb = null;
            this._againTxt = null;
            super.disposeImpl(param1);
            return;
        }// end function

        public function updateBtn(param1:int, param2:int) : void
        {
            if (param2 == param1)
            {
                EffectManager.glowFilterReg(this.enterBtn);
            }
            else
            {
                EffectManager.glowFilterUnReg(this.enterBtn);
            }
            return;
        }// end function

    }
}
